package cn.store.service;

import cn.store.domain.Category;
import cn.store.utils.JDBCUtils;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;

import java.sql.SQLException;
import java.util.List;

public interface CategoryService {

	List<Category> getAllCats()throws Exception;

	void addCategory(Category c)throws Exception;

	Category getCatById(String cid) throws Exception;

	void updateCategory(Category c) throws SQLException;

	void deleteCategory(String cid) throws SQLException;
}
